package com.jms.product.feign;

import com.jms.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Jamison
 * @version 1.0
 * @date 2021/6/10 14:54
 */
@FeignClient("third-party")
@Component
public interface ThirdPartyFeignService {

    @PostMapping("/sendSms")
    R sendSms(@RequestParam("mobile") String mobile, @RequestParam("code") String code);

    @PostMapping("/sendPasswordSms")
    R sendPasswordSms(@RequestParam("mobile") String mobile, @RequestParam("password") String password);

}
